home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-08 | 54.5 KB | 998 lines | [TEXT/R*ch] |
- C.S.M.P. Digest Sat, 08 Aug 92 Volume 1 : Issue 162
-
- Today's Topics:
-
- Location of selected printer?
- Religious Question: How Do The Metaphors Fit Together?
- Is System 7 written in C++?
-
-
-
- The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
-
- The digest is a collection of article threads from the internet newsgroup
- comp.sys.mac.programmer. It is designed for people who read c.s.m.p. semi-
- regularly and want an archive of the discussions. If you don't know what a
- newsgroup is, you probably don't have access to it. Ask your systems
- administrator(s) for details. (This means you can't post questions to the
- digest.)
-
- Each issue of the digest contains one or more sets of articles (called
- threads), with each set corresponding to a 'discussion' of a particular
- subject. The articles are not edited; all articles included in this digest
- are in their original posted form (as received by our news server at
- cs.uoregon.edu). Article threads are not added to the digest until the last
- article added to the thread is at least one month old (this is to ensure that
- the thread is dead before adding it to the digest). Article threads that
- consist of only one message are generally not included in the digest.
-
- The entire digest is available for anonymous ftp from ftp.cs.uoregon.edu
- [128.223.8.8] in the directory /pub/mac/csmp-digest. Be sure to read the
- file /pub/mac/csmp-digest/README before downloading any files. The most
- recent issues are available from sumex-aim.stanford.edu [36.44.0.6] in the
- directory /info-mac/digest/csmp. If you don't have ftp capability, the sumex
- archive has a mail server; send a message with the text '$MACarch help' (no
- quotes) to LISTSERV@ricevm1.rice.edu for more information.
-
- The digest is also available via email. Just send a note saying that you
- want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
- automatically receive each new issue as it is created. Sorry, back issues
- are not available through the mailing list.
-
- Send administrative mail to mkelly@cs.uoregon.edu.
-
-
- -------------------------------------------------------
-
- From: cinquin@imag.fr ( Philippe Cinquin)
- Subject: Location of selected printer?
- Date: 3 Jul 92 17:30:42 GMT
- Organization: IMAG Institute, University of Grenoble, France
-
- Just a simple question (I hope!): where is the name of the printer choosen
- by the user through the chooser stored? How can I get it and change it?
- (I know I normally shouldn't change it, but this is a special case).
-
- If you email please do so at " ocinquin@timb.imag.fr ". Thanks in advance.
-
- +++++++++++++++++++++++++++
-
- From: zobkiw@world.std.com (Joe Zobkiw)
- Date: 4 Jul 92 16:07:47 GMT
- Organization: The World Public Access UNIX, Brookline, MA
-
- The name of the printer is stored in the printer driver. The name of the
- printer driver is stored in the system file. There are some gotchas if you
- try to change these, so don't! That's what the Chooser is for.
-
-
- - --
- - -- joe zobkiw Internet: zobkiw@world.std.com
- - -- AOL: AFL Zobkiw
- - -- mac.synthesis.MIDI.THINK C.OOP
- - -- asm.comm.networks.cool tunes...
-
- ---------------------------
-
- From: orpheus@reed.edu (P. Hawthorne)
- Subject: Religious Question: How Do The Metaphors Fit Together?
- Date: 6 Jul 92 01:03:41 GMT
- Organization: Reed College, Portland OR
-
- I am afraid I am a casualty of object orientation. In trying to put the
- parts of the standard user interface together in a consistent framework,
- I have become confused about how they ought to fit together. I feel like
- Winnie the Pooh looking for the North Pole, blind to the metal rod right
- under his very nose... :-)
-
- The notion of a selection dominates the edit commands, even more so than
- the clipboard. If there is no current selection, the cut, copy and clear
- commands are dim. If there is no chance of having a selection in a given
- situation or the selection does not accept the contents of the clipboard,
- the paste command is dim. So, it appears that the clipboard is a servant of
- the selection. Fine, great, so...
-
- The selection itself appears to be an aspect of the window. The window
- draws and erases the selection when it is activated or deactivated.
- However, when one has more than one window open showing part of the same
- document, the windows are actually sharing the same selection. So the
- selection can be an aspect of the window that is actually a reference to
- an aspect of the document.
-
- As if that were way too easy, some windows use one of many forms of
- selection which might not have anything to do with the document per se.
- Windows such as dialogs that edit a part of the document often have their
- own notion of selection such as: the blinking insertion caret in an edit
- text dialog item; or a window in which one can have selected either
- icons, part of the name of an icon, or arcs between icons.
-
- So at any time there is one current application, one current window that
- implies one current document, and one current selection. Does this sound
- right or am I missing something? Does anyone else wonder about all this?
- Could it be that I have become completely obsessed?
-
- Theus (orpheus@reed.edu)
- (If you consider this a waste of bandwidth, I beg your pardon.)
-
- +++++++++++++++++++++++++++
-
- From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
- Date: 6 Jul 92 06:38:40 GMT
- Organization: University of Waikato, Hamilton, New Zealand
-
- In article <1992Jul6.010341.9143@reed.edu>, orpheus@reed.edu (P. Hawthorne)
- writes:
-
- [sorry for rearranging the bits of your posting, but it seemed easier
- to respond to them in this order...]
-
- > So at any time there is one current application, one current window that
- > implies one current document, and one current selection.
-
- Yup, this is how it's supposed to be. It's certainly what the AppleEvent
- Object Model expects.
-
- > As if that were way too easy, some windows use one of many forms of
- > selection which might not have anything to do with the document per se.
- > Windows such as dialogs that edit a part of the document often have their
- > own notion of selection such as: the blinking insertion caret in an edit
- > text dialog item; or a window in which one can have selected either
- > icons, part of the name of an icon, or arcs between icons.
-
- Well, the selection has to do with whatever is being manipulated in the
- window. The window might be a dialog for examining and changing settings
- to do with a document. Consider the standard PutFile dialog in System 7;
- the current selection can either be an item in a list, or some part of
- an editable text field. The only reason you can't select both sorts of
- things at once is simply because it doesn't make sense, given the way
- the dialog is supposed to work.
-
- > The selection itself appears to be an aspect of the window. The window
- > draws and erases the selection when it is activated or deactivated.
- > However, when one has more than one window open showing part of the same
- > document, the windows are actually sharing the same selection. So the
- > selection can be an aspect of the window that is actually a reference to
- > an aspect of the document.
-
- In my experience, the handling of multiple views of the same document
- tends to vary somewhat. In spite of all the bad things that M#%$#S@ft have
- done, Excel *can* serve as a useful model in this one respect: it lets
- you split a window into panes, so that you can do useful things like
- manipulate all four corners of a large rectangular selection without lots
- of scrolling.
-
- The MPW Shell (3.2 and later) has a similar, if more elaborate, scheme.
- It only shows you the selection in one window pane at a time, but otherwise
- the selection behaves similarly to Excel--you can click at one point in
- one pane, and then shift-click at a different point being shown in another
- pane, to select everything between those two points in the document.
-
- For those applications that let you open multiple separate windows
- showing the same document, the selection in each window is usually independent.
- Thus, it might be considered to be a property of the window, not of the
- document. But then the question arises of which selection you save with the
- document.
-
- I just checked this in Claris Resolve, and it's got a solution I wasn't
- aware of before. I opened a new worksheet, selected cell C17, typed something
- into it, and then saved and closed the worksheet. Then I reopened it, asked
- for a "New View" (which creates a new window showing the same document),
- selected cell C6 in the new window, and typed something else in, leaving
- C6 selected. Next I went back to the first window, where cell C17 was still
- selected, and saved my changes with that window in front. And guess what--it
- saved the fact that I had two views open! When I reopened the document, I got
- two windows, the first with cell C17 selected, the second with cell C6 selected.
-
- So there's an interesting solution for you. I still wish Resolve had
- Excel-style panes (and no, "Titles" are *not* a satisfactory substitute), but
- it's obvious the user-interface folks at Claris haven't been *completely*
- asleep. :-)
-
- > Could it be that I have become completely obsessed?
-
- All the good Mac hackers are. :-)
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- Ask not for whom the phone rings; it rings for you.
-
- ---------------------------
-
- From: ian@syacus.acus.oz.au (Ian Joyner)
- Subject: Is System 7 written in C++?
- Organization: ACUS Australian Centre for Unisys Software, Sydney
- Date: Thu, 28 May 1992 01:34:08 GMT
-
- Kent,
-
- Here is a question for you or anyone else who cares to clarify this point.
- You may have read in comp.lang.c++ that Andrew Koenig claimed that
- system 7 was rewritten in C++, from object Pascal. To my knowledge
- previous systems were written in 68000 assembler, not OP. I believe
- Finder has been rewritten in C++ (can't remember where I got this from,
- maybe this newsgroup), but has the whole of system 7 been written
- in C++?
-
- Thanks for the clarification :-)
-
- - --
- Ian Joyner ACSNet: ian@syacus.acus.oz
- ACUS (Australian Centre for Unisys Software) Internet: ian@syacus.acus.oz.au
- 115-117 Wicks Rd, North Ryde, N.S.W, Australia 2113.
- Tel 61-2-390 1328 Fax 61-2-390 1391 UUCP: ...uunet!munnari!syacus.oz
-
- +++++++++++++++++++++++++++
-
- From: peirce@outpost.SF-Bay.org (Michael Peirce)
- Date: 28 May 92 18:05:30 GMT
- Organization: Peirce Software
-
-
- In article <1992May28.013408.27837@syacus.acus.oz.au> (comp.sys.mac.programmer), ian@syacus.acus.oz.au (Ian Joyner) writes:
- > Kent,
- >
- > Here is a question for you or anyone else who cares to clarify this point.
- > You may have read in comp.lang.c++ that Andrew Koenig claimed that
- > system 7 was rewritten in C++, from object Pascal. To my knowledge
- > previous systems were written in 68000 assembler, not OP. I believe
- > Finder has been rewritten in C++ (can't remember where I got this from,
- > maybe this newsgroup), but has the whole of system 7 been written
- > in C++?
-
- I think it's difficult to say that any particular language was used
- to write the Mac system. Parts are writtren in a variety of languages.
- 680X0 asm is a good chunk, Pascal and C code are in there in some
- places. C++ was used to write most of the new Finder.
-
- What does it really matter?
-
- - -- Michael Peirce -- peirce@outpost.SF-Bay.org
- - -- Peirce Software -- Suite 301, 719 Hibiscus Place
- - -- Makers of... -- San Jose, California USA 95117
- - -- -- voice: (408) 244-6554 fax: (408) 244-6882
- - -- SMOOTHIE -- AppleLink: peirce & America Online: AFC Peirce
-
- +++++++++++++++++++++++++++
-
- From: casseres@apple.com (David Casseres)
- Date: 28 May 92 16:50:39 GMT
- Organization: Apple Computer, Inc.
-
- In article <1992May28.013408.27837@syacus.acus.oz.au>, ian@syacus.acus.oz.au
- (Ian Joyner) writes:
-
- > Here is a question for you or anyone else who cares to clarify this point.
- > You may have read in comp.lang.c++ that Andrew Koenig claimed that
- > system 7 was rewritten in C++, from object Pascal. To my knowledge
- > previous systems were written in 68000 assembler, not OP. I believe
- > Finder has been rewritten in C++ (can't remember where I got this from,
- > maybe this newsgroup), but has the whole of system 7 been written
- > in C++?
-
- Parts of System 7, notably the Finder, were rewritten in C++. Parts are in C,
- and some parts may still be Pascal. I don't believe any of it was ever Object
- Pascal, but previous systems were written in a mixture of assembly and Pascal.
-
- (I guess if you want to be very technical about it, Mac Pascal *is*